package org.wisigoth.chat.client.jabber;

import java.util.Collection;
import java.util.LinkedList;

import org.wisigoth.chat.client.Contact;
import org.wisigoth.chat.client.FriendList;

public class FriendListImpl implements FriendList {

	private Collection<Contact> list;
	
	public FriendListImpl() {
		this.list = new LinkedList<Contact> () ;
		
	}
	
	@Override
	public void addContact(Contact contact) {
		this.list.add(contact);
	}

	@Override
	public boolean isKnown(Contact contact) {
		return this.list.contains(contact);
	}

	@Override
	public Collection<Contact> whoIKnow() {
		return this.list;
	}

}
